package net.sinodata.smartframework.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Description: 定时任务实体类
 * 
 * @author: zhangyang yinliangyun
 * @date: 2021-5-18
 */
public class ScheduleJob implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@TableId(type=IdType.AUTO)
	private Integer id;
	
	private String jobName;
	
	private String jobClass;
	
	private String cronExpression;
	
	private Integer multiRunFlag;
	
	private String flagExpress;
	
	private String remark;
	
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date createTime;
	
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date updateTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobClass() {
		return jobClass;
	}

	public void setJobClass(String jobClass) {
		this.jobClass = jobClass;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}

	public Integer getMultiRunFlag() {
		return multiRunFlag;
	}

	public void setMultiRunFlag(Integer multiRunFlag) {
		this.multiRunFlag = multiRunFlag;
	}

	public String getFlagExpress() {
		return flagExpress;
	}

	public void setFlagExpress(String flagExpress) {
		this.flagExpress = flagExpress;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "ScheduleJob [id=" + id + ", jobName=" + jobName + ", jobClass=" + jobClass + ", cronExpression="
				+ cronExpression + ", multiRunFlag=" + multiRunFlag + ", flagExpress=" + flagExpress + ", remark="
				+ remark + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
	
}
